--partCell
local ClientOHOH = _G.ClientOHOH;
local M = ClientOHOH.class.new(script, ClientOHOH.files.PartCell())
local CallBackManager = ClientOHOH.load.CallBackManager();
local ConnectClass=_G.CommonOHOH.load.Connect();
--partCell
function M.new(...)
	return M(...);
end;

function M.ctor(self,carId,parent,database,guid,count)
    M.super.ctor(self,carId,parent,database,guid);
	self.count = count
    self.ClickEvent=ConnectClass.new();  

    CallBackManager:AddRbxConnect(self,self.insts.btn.Activated, function()
        self.ClickEvent:Action(self)
	end);
	-- self.UpdateEvent=ConnectClass.new()      -- 状态发生了更新
    -- self.DeleteEvent=ConnectClass.new()      -- 被删掉了
end;

function M.dtor(self)
    -- self.DeleteEvent:Action()
    self:HideTip()
    self.ClickEvent:dtor()
    --self.UpdateEvent:dtor()
	M.super.dtor(self);
end;
--设置 锁定不可视状态
function M.SetCellLockLook(self,icon)
    self.insts.partImage.Image = icon
end
-- --设置需要数量可视状态
-- function M.SetPartNeedVisibility(self,isVisible)
--     self.insts.partIn.Visible = isVisible
-- end


function M.IsCanEquip(self)
end


return M